package cn.cleanarch.infra.idp.uaa.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.cleanarch.infra.idp.database.entity.DBModel;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@TableName("t_user")
public class User extends DBModel {

  public static final long USER_ID_SUPER = 1; // 超管userId

  @Length(max = 50)
  private String username;

  @Length(max = 255)
  private String password;

  private Boolean enable;

}
